package org.zhadoop.stream.cql.semanticanalyzer.parser.context;

import java.util.List;

import org.zhadoop.stream.cql.DriverContext;
import org.zhadoop.stream.cql.exception.CQLException;
import org.zhadoop.stream.cql.exception.SemanticAnalyzerException;
import org.zhadoop.stream.cql.hooks.SemanticAnalyzeHook;
import org.zhadoop.stream.cql.semanticanalyzer.SemanticAnalyzer;
import org.zhadoop.stream.cql.semanticanalyzer.parsecontextwalker.ParseContextWalker;
import org.zhadoop.stream.cql.tasks.Task;
import org.zhadoop.streaming.util.StreamingDataType;

/**
 * 列名称类型解析内容
 * @author zwd
 *
 */
public class ColumnNameTypeContext extends ParseContext{

	private String columnName;
	
	private StreamingDataType columnType;
	
	
	@Override
	public String toString() {
		return columnName + " " + columnType.getDesc();	
	}


	public String getColumnName() {
		return columnName;
	}


	public void setColumnName(String columnName) {
		this.columnName = columnName;
	}


	public StreamingDataType getColumnType() {
		return columnType;
	}


	public void setColumnType(StreamingDataType columnType) {
		this.columnType = columnType;
	}


	@Override
	public Task createTask(DriverContext driverContext, List<SemanticAnalyzeHook> analyzeHooks) throws CQLException {
		return null;
	}

	@Override
	public SemanticAnalyzer createAnalyzer() throws SemanticAnalyzerException {
		return null;
	}


	@Override
	protected void walkChild(ParseContextWalker walker) {
	}
	
}
